<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  

  
  <title>redis 集群（redis_cluster）搭建 | 个人博客</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="categories: Redisredis 集群（redis_cluster）搭建 RedisCluster最少需要三台主服务器，三台从服务器。   下载redis 对应的版本  1wget http:&#x2F;&#x2F;download.redis.io&#x2F;releases&#x2F;redis-5.0.5.tar.gz   解压文件 1tar -xzf redis-5.0.5.tar.gz   新建redis_clu">
<meta property="og:type" content="article">
<meta property="og:title" content="redis 集群（redis_cluster）搭建">
<meta property="og:url" content="http://codercheng.cn/2021/01/14/redis%20%E9%9B%86%E7%BE%A4%EF%BC%88redis_cluster%EF%BC%89%E6%90%AD%E5%BB%BA/index.html">
<meta property="og:site_name" content="个人博客">
<meta property="og:description" content="categories: Redisredis 集群（redis_cluster）搭建 RedisCluster最少需要三台主服务器，三台从服务器。   下载redis 对应的版本  1wget http:&#x2F;&#x2F;download.redis.io&#x2F;releases&#x2F;redis-5.0.5.tar.gz   解压文件 1tar -xzf redis-5.0.5.tar.gz   新建redis_clu">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/142002-14345.png">
<meta property="og:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/142104-78557.png">
<meta property="og:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/142214-366898.png">
<meta property="og:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202101/15/133752-642747.png">
<meta property="og:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/143447-961623.png">
<meta property="og:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/143522-36593.png">
<meta property="og:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/143849-230533.png">
<meta property="og:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/144006-851450.png">
<meta property="og:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/144133-335819.png">
<meta property="og:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/153905-774723.png">
<meta property="og:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/154653-638862.png">
<meta property="og:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/154848-182152.png">
<meta property="og:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/154908-348436.png">
<meta property="og:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/155118-982584.png">
<meta property="og:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/155234-192808.png">
<meta property="og:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202101/15/112824-690646.png">
<meta property="og:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202101/15/134443-257713.png">
<meta property="article:published_time" content="2021-01-14T06:29:06.675Z">
<meta property="article:modified_time" content="2021-03-03T07:29:21.777Z">
<meta property="article:author" content="CoderCheng">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/142002-14345.png">
  
    <link rel="alternate" href="/atom.xml" title="个人博客" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.png">
  
  
    <link href="//fonts.lug.ustc.edu.cn/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  
<link rel="stylesheet" href="/css/style.css">

<meta name="generator" content="Hexo 4.2.1"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">个人博客</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="搜索"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://codercheng.cn"></form>
      </div>
    </div>
  </div>
</header>
      <div class="outer">
        <section id="main"><article id="post-redis 集群（redis_cluster）搭建" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2021/01/14/redis%20%E9%9B%86%E7%BE%A4%EF%BC%88redis_cluster%EF%BC%89%E6%90%AD%E5%BB%BA/" class="article-date">
  <time datetime="2021-01-14T06:29:06.675Z" itemprop="datePublished">2021-01-14</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      redis 集群（redis_cluster）搭建
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <hr>
<h2 id="categories-Redis"><a href="#categories-Redis" class="headerlink" title="categories: Redis"></a>categories: Redis</h2><p>redis 集群（redis_cluster）搭建</p>
<p>RedisCluster最少需要三台主服务器，三台从服务器。 </p>
<ul>
<li>下载redis 对应的版本</li>
</ul>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">wget http://download.redis.io/releases/redis<span class="literal">-5</span>.<span class="number">0.5</span>.tar.gz</span><br></pre></td></tr></table></figure>

<ul>
<li><p>解压文件</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">tar <span class="literal">-xzf</span> redis<span class="literal">-5</span>.<span class="number">0.5</span>.tar.gz</span><br></pre></td></tr></table></figure>

<ul>
<li><p>新建redis_cluster 文件夹并 新建7001-7006 目录</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">mkdir redis_cluster</span><br><span class="line">cd  redis_cluster/ </span><br><span class="line">mkdir <span class="number">7001</span> <span class="number">7002</span> <span class="number">7003</span> <span class="number">7004</span> <span class="number">7005</span> <span class="number">7006</span></span><br></pre></td></tr></table></figure>
</li>
</ul>
</li>
<li><p>编译 redis </p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">make install PREFIX=/root/redis_cluster/redis_cluster/<span class="number">7001</span></span><br></pre></td></tr></table></figure>
</li>
<li><p>拷贝配置文件</p>
   <figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">cp /root/redis<span class="literal">-5</span>.<span class="number">0.5</span>/redis.conf /root/redis_cluster/<span class="number">7001</span>/bin</span><br></pre></td></tr></table></figure>
</li>
<li><p>修改配置文件</p>
<p>  1 端口号</p>
<p><img src="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/142002-14345.png" alt="image-20210114142001237"></p>
</li>
</ul>
<p>​       2  打开cluster-enable yes</p>
<p><img src="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/142104-78557.png" alt="image-20210114142104172"></p>
<p>​    3  后台进程 开启  daemonize yes</p>
<p><img src="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/142214-366898.png" alt="image-20210114142214518"></p>
<p>   4   保护模式 关闭</p>
<p><img src="https://gitee.com/adc123321/blog_img/raw/master/image/202101/15/133752-642747.png" alt="image-20210114142249346"></p>
<ul>
<li><p>复制7001，创建7002~7006实例，<strong>注意端口修改</strong>。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">cp -r &#x2F;root&#x2F;redis_cluster&#x2F;7001&#x2F;* &#x2F;root&#x2F;redis_cluster&#x2F;7002</span><br><span class="line">cp -r &#x2F;root&#x2F;redis_cluster&#x2F;7001&#x2F;* &#x2F;root&#x2F;redis_cluster&#x2F;7003 </span><br><span class="line">cp -r &#x2F;root&#x2F;redis_cluster&#x2F;7001&#x2F;* &#x2F;root&#x2F;redis_cluster&#x2F;7004 </span><br><span class="line">cp -r &#x2F;root&#x2F;redis_cluster&#x2F;7001&#x2F;* &#x2F;root&#x2F;redis_cluster&#x2F;7005 </span><br><span class="line">cp -r &#x2F;root&#x2F;redis_cluster&#x2F;7001&#x2F;* &#x2F;root&#x2F;redis_cluster&#x2F;7006</span><br></pre></td></tr></table></figure>
</li>
<li><p>创建 start.sh 启动所有实例</p>
 <figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">cd <span class="number">7001</span>/bin</span><br><span class="line">./redis<span class="literal">-server</span> redis.conf</span><br></pre></td></tr></table></figure>

</li>
</ul>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br></pre></td><td class="code"><pre><span class="line"> cd ..</span><br><span class="line">cd ..</span><br><span class="line">cd <span class="number">7002</span>/bin</span><br><span class="line">./redis<span class="literal">-server</span> redis.conf</span><br><span class="line">cd ..</span><br><span class="line">cd ..</span><br><span class="line"></span><br><span class="line">cd <span class="number">7003</span>/bin</span><br><span class="line">./redis<span class="literal">-server</span> redis.conf</span><br><span class="line">cd ..</span><br><span class="line">cd ..</span><br><span class="line"></span><br><span class="line">cd <span class="number">7004</span>/bin</span><br><span class="line">./redis<span class="literal">-server</span> redis.conf</span><br><span class="line">cd ..</span><br><span class="line">cd ..</span><br><span class="line">cd <span class="number">7005</span>/bin</span><br><span class="line">./redis<span class="literal">-server</span> redis.conf</span><br><span class="line">cd ..</span><br><span class="line">cd ..</span><br><span class="line"></span><br><span class="line">cd <span class="number">7006</span>/bin</span><br><span class="line">./redis<span class="literal">-server</span> redis.conf</span><br><span class="line">cd ..</span><br><span class="line">cd ..</span><br></pre></td></tr></table></figure>

<p>  chmod u+x start.sh (赋写和执行的权限) </p>
<p> ./start.sh(启动RedisCluster)</p>
<ul>
<li>创建Redis集群（创建时Redis里不要有数据）</li>
</ul>
<p>​         进入到任何一个实例下的bin 目录</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">cd redis_cluster/<span class="number">7001</span>/bin/</span><br></pre></td></tr></table></figure>

<p> 执行 集群创建集群命令</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">./redis<span class="literal">-cli</span> -<span class="literal">-cluster</span> create <span class="number">10.9</span>.<span class="number">49.202</span>:<span class="number">7001</span> <span class="number">10.9</span>.<span class="number">49.202</span>:<span class="number">7002</span> <span class="number">10.9</span>.<span class="number">49.202</span>:<span class="number">7003</span> <span class="number">10.9</span>.<span class="number">49.202</span>:<span class="number">7004</span> <span class="number">10.9</span>.<span class="number">49.202</span>:<span class="number">7005</span> <span class="number">10.9</span>.<span class="number">49.202</span>:<span class="number">7006</span> -<span class="literal">-cluster</span><span class="literal">-replicas</span> <span class="number">1</span></span><br></pre></td></tr></table></figure>

<p> 看到如下信息 回复yes</p>
<p><img src="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/143447-961623.png" alt="image-20210114143446447"></p>
<p>  最后看到如下信息说明成功</p>
<p>​            <img src="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/143522-36593.png" alt="image-20210114143522864"></p>
<ul>
<li>命令客户端连接集群  注意：<strong>-c</strong> 表示是以redis集群方式进行连接</li>
</ul>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">./redis<span class="literal">-cli</span> <span class="literal">-h</span> <span class="number">127.0</span>.<span class="number">0.1</span> <span class="literal">-p</span> <span class="number">7001</span> <span class="literal">-c</span></span><br></pre></td></tr></table></figure>

<p>   执行命令测试</p>
   <figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">set name 111</span><br></pre></td></tr></table></figure>

<p><img src="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/143849-230533.png" alt="image-20210114143848490"></p>
<p>查看集群状态</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">cluster info</span><br></pre></td></tr></table></figure>


<p><img src="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/144006-851450.png" alt="image-20210114144003634"></p>
<p>查看集群中的节点</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">cluster nodes</span><br></pre></td></tr></table></figure>

<p><img src="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/144133-335819.png" alt="image-20210114144132655"></p>
<p> 到此为止   redis 集群搭建成功！！！</p>
<p>​                 —————————————————动态扩容——————————————————————</p>
<p>先创建7007 主节点 （无数据） 7008从节点 （无数据）</p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">mkdir redis_cluster/<span class="number">7007</span></span><br><span class="line">mkdir redis_cluster/<span class="number">7008</span></span><br><span class="line">make install PREFIX=/root/redis_cluster/<span class="number">7007</span></span><br><span class="line">make install PREFIX=/root/redis_cluster/<span class="number">7008</span></span><br><span class="line"><span class="comment">#拷贝配置文件 并进行端口修改</span></span><br><span class="line">cp /root/redis<span class="literal">-5</span>.<span class="number">0.5</span>/redis.conf /root/redis_cluster/<span class="number">7007</span>/bin</span><br><span class="line">cp /root/redis<span class="literal">-5</span>.<span class="number">0.5</span>/redis.conf /root/redis_cluster/<span class="number">7008</span>/bin</span><br></pre></td></tr></table></figure>

<p>添加7007结点作为新节点,并启动</p>
<p>   后面地址是集群的一个ip地址表示要加入到该集群中</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">.&#x2F;redis-cli --cluster add-node 10.9.49.202:7007 10.9.49.202:7001</span><br></pre></td></tr></table></figure>

<p><img src="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/153905-774723.png" alt="image-20210114153904347"> </p>
<p>​           <strong>添加完主节点需要对主节点进行hash槽分配，这样该主节才可以存储数据。</strong></p>
<p>​           <strong>给刚添加的7007结点分配槽</strong></p>
<ul>
<li><p>​    <strong>第一步：连接上集群（连接集群中任意一个可用结点都行）</strong></p>
  <figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">./redis<span class="literal">-cli</span> -<span class="literal">-cluster</span> reshard <span class="number">10.9</span>.<span class="number">49.202</span>:<span class="number">7007</span></span><br></pre></td></tr></table></figure>
</li>
<li><p><strong>第二步：输入要分配的槽数量</strong></p>
<p> How many slots do you want to move (from 1 to 16384)? 3000</p>
</li>
</ul>
<p>​     输入：<strong>3000</strong>，表示要给目标节点分配3000个槽</p>
<ul>
<li><strong>第三步：输入接收槽的结点id</strong></li>
</ul>
<p>​          What is the receiving node ID?</p>
<p>输入：bcbac44a7830a8e23f3bd07cb69a38df04aa1a2c</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">PS：这里准备给7007分配槽，通过cluster nodes查看7007结点id为：</span><br><span class="line">bcbac44a7830a8e23f3bd07cb69a38df04aa1a2c</span><br></pre></td></tr></table></figure>

<ul>
<li><strong>第四步：输入源结点id</strong></li>
</ul>
<p><img src="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/154653-638862.png" alt="image-20210114154653083"></p>
<p>  表示从所有节点上 一共分配3000 个节点</p>
<ul>
<li><strong>第五步：输入yes开始移动槽到目标结点id</strong></li>
</ul>
<p><img src="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/154848-182152.png" alt="image-20210114154847720"></p>
<p><img src="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/154908-348436.png" alt="image-20210114154908085"></p>
<p>  <strong>添加从节点</strong></p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">./redis<span class="literal">-cli</span> -<span class="literal">-cluster</span> <span class="built_in">add-node</span> <span class="number">10.9</span>.<span class="number">49.202</span>:<span class="number">7008</span> <span class="number">10.9</span>.<span class="number">49.202</span>:<span class="number">7007</span> -<span class="literal">-cluster</span><span class="literal">-slave</span> -<span class="literal">-cluster</span><span class="literal">-master</span><span class="literal">-id</span>  bcbac44a7830a8e23f3bd07cb69a38df04aa1a2c</span><br></pre></td></tr></table></figure>



<p><img src="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/155118-982584.png" alt="image-20210114155117757"></p>
<p> 查看 扩容后结果</p>
<p><img src="https://gitee.com/adc123321/blog_img/raw/master/image/202101/14/155234-192808.png" alt="image-20210114155233904"></p>
<p>   成功</p>
<h2 id="遇到问题-在客户端执行命名-报"><a href="#遇到问题-在客户端执行命名-报" class="headerlink" title="遇到问题 在客户端执行命名 报"></a>遇到问题 在客户端执行命名 报</h2><ol>
<li><p><strong>error MOVED 原因和解决方案</strong></p>
<p>原因①②③④</p>
</li>
</ol>
<p>这种情况一般是因为启动redis-cli时没有设置集群模式所导致</p>
<p>启动时使用-c参数来启动集群模式，命令如下：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">redis-cli -c -p 7000</span><br></pre></td></tr></table></figure>

<ol start="2">
<li><a href="https://www.cnblogs.com/enjoyjava/p/11361127.html" target="_blank" rel="noopener">(error) CLUSTERDOWN The cluster is down</a></li>
</ol>
<p>​       外部不到redis 集群 所以修改了 nodes.conf  内网地址为 外网地址 导致  报这个错</p>
<p>解决过程   </p>
<p>​    ① 删除所有节点的 dump.rdb 和nodes.conf文件删除  </p>
<p>​     ②   <strong>开放17001-17008</strong>(重要)</p>
<p>​    ③ 节点创建使用外网地址     否则集群无法创建成功</p>
<p>​       ok 成功访问。使用客户端查看信息 </p>
<p><img src="https://gitee.com/adc123321/blog_img/raw/master/image/202101/15/112824-690646.png" alt="image-20210115112823240"></p>
<p>   用Jedis 代码查看   </p>
<p><img src="https://gitee.com/adc123321/blog_img/raw/master/image/202101/15/134443-257713.png" alt="image-20210115134442139"></p>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://codercheng.cn/2021/01/14/redis%20%E9%9B%86%E7%BE%A4%EF%BC%88redis_cluster%EF%BC%89%E6%90%AD%E5%BB%BA/" data-id="cko3snvx80017i8uoconq78nh" class="article-share-link">Share</a>
      
      
    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/2021/01/15/redis%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Newer</strong>
      <div class="article-nav-title">
        
          redis常用命令
        
      </div>
    </a>
  
  
    <a href="/2021/01/06/MongoDB%E5%92%8CNeo4j%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title">MongoDB和Neo4j学习笔记</div>
    </a>
  
</nav>

  
</article>

</section>
        
          <aside id="sidebar">
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">分类</h3>
    <div class="widget">
      <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/Java/">Java</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/MySql/">MySql</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Netty/">Netty</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/SpringBoot/">SpringBoot</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/SpringCloud/">SpringCloud</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/SpringMVC/">SpringMVC</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Tomcat/">Tomcat</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Zookeeper/">Zookeeper</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E4%BD%9C%E4%B8%9A/">作业</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%88%86%E5%B8%83%E5%BC%8F%E8%B0%83%E5%BA%A6/">分布式调度</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E6%A1%86%E6%9E%B6/">框架</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E7%9F%A5%E8%AF%86/">知识</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/">设计模式</a></li></ul>
    </div>
  </div>


  
    

  
    
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">归档</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2024/08/">八月 2024</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/09/">九月 2022</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/08/">八月 2022</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/04/">四月 2022</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/02/">二月 2022</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/11/">十一月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/06/">六月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/05/">五月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/04/">四月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/03/">三月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/02/">二月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/01/">一月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/12/">十二月 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/11/">十一月 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/10/">十月 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/09/">九月 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/08/">八月 2020</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">最新文章</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2024/08/28/CentOS%E5%86%85%E5%AD%98cpu%E6%8E%92%E6%9F%A5/">CentOS内存cpu排查</a>
          </li>
        
          <li>
            <a href="/2022/09/22/Linux%20%E6%9F%A5%E7%9C%8B%E6%97%A5%E5%BF%97%E5%91%BD%E4%BB%A4/">Linux 查看日志命令</a>
          </li>
        
          <li>
            <a href="/2022/08/30/dubbo%20%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98/">dubbo 常见问题</a>
          </li>
        
          <li>
            <a href="/2022/04/26/1%20%E6%BA%90%E7%A0%81%E7%AC%94%E8%AE%B0/">1 源码笔记</a>
          </li>
        
          <li>
            <a href="/2022/02/24/jvisualVM%20%E4%BD%BF%E7%94%A8%E7%AC%94%E8%AE%B0/">jvisualVM 使用笔记</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2024 CoderCheng<br>
      Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>
    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    

<script src="//code.jquery.com/jquery-2.0.3.min.js"></script>


  
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css">

  
<script src="/fancybox/jquery.fancybox.pack.js"></script>




<script src="/js/script.js"></script>




  </div>
</body>
</html>